home *** CD-ROM | disk | FTP | other *** search
/ Interactive Web Graphics with Shout 3D / Interactive Web Graphics With Shout 3D.iso / pc / Shout3Ddemo / Shout3d_runtime / codebase / models / animTests / tcbscalebox.S3D < prev   
Text File  |  2000-05-30  |  3KB  |  98 lines

  1. DEF world-TIMER TimeSensor {
  2.     loop TRUE
  3.     cycleInterval 3.333
  4. }
  5. DEF Box01 Transform {
  6.     translation -0.3824 0.02415 -0.6492
  7.     children [
  8.         Shape {
  9.             appearance [
  10.                 MultiAppearance {
  11.                     material Material {
  12.                         diffuseColor 0.6039 0.6039 0.898
  13.                     }
  14.                 }
  15.             ]
  16.             geometry MultiMesh {
  17.                 coord Coordinate {
  18.                     point [
  19.                         -15 0 15 15 0 15 -15 0 -15 15 0 -15 -15 30 15 15 30 15 -15 30 -15 15 30 -15
  20.                     ]
  21.                 }
  22.                 coordIndex [
  23.                     0 2 3 -1 3 1 0 -1 4 5 7 -1 7 6 4 -1 0 1 5 -1 5 4 0 -1 1 3 7 -1 7 5 1 -1 3 2 6 -1 6 7 3 -1
  24.                     2 0 4 -1 4 6 2 -1
  25.                 ]
  26.                 edgeVisibleIndex [
  27.                     1 1 0 -1 1 1 0 -1 1 1 0 -1 1 1 0 -1 1 1 0 -1 1 1 0 -1 1 1 0 -1 1 1 0 -1 1 1 0 -1 1 1 0 -1
  28.                     1 1 0 -1 1 1 0 -1
  29.                 ]
  30.                 smoothingIndex [
  31.                     2 -1 2 -1 3 -1 3 -1 4 -1 4 -1 5 -1 5 -1 6 -1 6 -1 7 -1 7 -1
  32.                 ]
  33.                 appearanceIndex [
  34.                     1 1 0 0 4 4 3 3 5 5 2 2
  35.                 ]
  36.                 textureMappings [
  37.                 ]
  38.             }
  39.         }
  40.         DEF Box01-SCALE-INTERP TCBVecInterpolator {
  41.             key [
  42.                 0 0.5 1
  43.             ]
  44.             keyValue [
  45.                 1 1 1 0 0 0 0 0
  46.                 0.3021 0.3021 0.3021 0 0 0 0.73 0.752
  47.                 1 1 1 0 0 0 0 0
  48.             ]
  49.         }
  50.         ROUTE world-TIMER.fraction_changed TO Box01-SCALE-INTERP.set_fraction
  51.         ROUTE Box01-SCALE-INTERP.value_changed TO Box01.set_scale
  52.     ]
  53. }
  54. DEF Camera01 Viewpoint{
  55.     position -0.9421 6.743 126
  56.     orientation 0 0 0 0
  57.     fieldOfView 0.6024
  58.     description "Camera01"
  59. }
  60.  
  61. DEF Box02 Transform {
  62.     translation -0.3824 0.02415 -0.6492
  63.     children [
  64.         Shape {
  65.             appearance Appearance {
  66.                 material Material {
  67.                     emissiveColor 0 0 1 
  68.                 }
  69.             }
  70.             geometry IndexedLineSet {
  71.                 coord Coordinate {
  72.                     point [
  73.                         -15 0 15 15 0 15 -15 0 -15 15 0 -15 -15 30 15 15 30 15 -15 30 -15 15 30 -15
  74.                     ]
  75.                 }
  76.                 coordIndex [
  77.                     0 2 3 -2 3 1 0 -2 4 5 7 -2 7 6 4 -2 0 1 5 -2 5 4 0 -2 1 3 7 -2 7 5 1 -2 3 2 6 -2 6 7 3 -2
  78.                     2 0 4 -2 4 6 2 -2
  79.                 ]
  80.             }
  81.         }
  82.         DEF Box02-SCALE-INTERP PositionInterpolator {
  83.             key [
  84.                 0 0.05 0.1 0.15 0.2 0.25 0.3 0.35 0.4 0.45 0.6 0.65 0.7 0.75 0.8 0.85 0.9 0.95 1
  85.             ]
  86.             keyValue [1 1 1
  87.                 0.8365 0.8365 0.8365 0.6812 0.6812 0.6812 0.543 0.543 0.543 0.4395 0.4395 0.4395 0.3714 0.3714 0.3714
  88.                 0.3315 0.3315 0.3315 0.3117 0.3117 0.3117 0.304 0.304 0.304 0.3022 0.3022 0.3022 0.304 0.304 0.304
  89.                 0.3114 0.3114 0.3114 0.3308 0.3308 0.3308 0.3698 0.3698 0.3698 0.4365 0.4365 0.4365
  90.                 0.5378 0.5378 0.5378 0.676 0.676 0.676 0.8337 0.8337 0.8337 1 1 1
  91.  
  92.             ]
  93.         }
  94.         ROUTE world-TIMER.fraction_changed TO Box02-SCALE-INTERP.set_fraction
  95.         ROUTE Box02-SCALE-INTERP.value_changed TO Box02.set_scale
  96.     ]
  97. }
  98.